<?php

namespace console\controllers;
use common\models\Article;
use yii\console\Controller;
use common\Com\CurlMatch;
use common\Com\Caiji;
/**
 * Created by PhpStorm.
 * User: gesangdianzi
 * Date: 2018/4/7
 * Time: 8:57
 */
class AutoController extends Controller
{

    /**
     * php /alidata/www/angzhui/yii auto/index
     */
    public function actionIndex(){
        $cai = new Caiji();
        $cai->getSzfangwei();
    }

    public function actionTest(){
        echo 1;
    }
    public function actionDb(){
        echo Article::find()->count();
    }
}